<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>读者广场</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <link rel="shortcut icon" href="http://img4.dangdang.com/bottom/validate.gif"/>
</head>
<body>
    <% include nav %>
    <div id="garden">
        <div class="title">图书评论</div>
        <% for(var i=0; i < book.length; i++){%>
        <div class="per clearfix">
            <img height=50 width=50 src="./img/head1.jpg" alt="">
            <div class="content">
                <div class="top">
                    <span class="user"><%= user[i]%></span>对<span class="book">《<%= book[i]%>》</span>
                    的评价是：
                </div>
                <p class="comment"><%= talk[i]%></p>
            </div>
        </div>
        <%}%>
    </div>
    <% include footer %>
    <script src="/js/require.js"></script>
    <script>
        require.config({
            paths: {
                'jquery': '/js/jquery-2.1.3.min',
                'logined':'/js/logined'
            }
        });

        require(['jquery','logined'], function($,Logined) {
            //头部登陆头像显示的处理
            var username = localStorage.getItem("username"),
                userpass = localStorage.getItem("userpass");
            Logined.logined(username,userpass);
            //nav定位
            $($(".nav .nav-child")[2]).addClass("one").siblings().removeClass("one");
        })
    </script>
</body>
</html>